import request from "../common/appserver";

export const bingInviterCode = data => {
  return request.post("/api/user/bind_invite_code", data);
};

// 检查分享链接是否存在
export const checkShareLink = params => {
  return request.get("/api/tools/check_share_link", { params });
};

// 登陆
export const login = data => {
  return request.post("/api/user/login", data);
};

// 获取验证码
export const getVerificationCode = data => {
  return request.post("/api/tools/send_email_code", data);
};

// 注册
export const register = data => {
  return request.post("/api/user/register", data);
};
// 获取用户详情
export const getUserDetail = () => {
  return request.get("/api/user/get_user_info");
};
